﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.DataContract.Page
{
    /// <summary>
    /// 返回结果契约基类
    /// </summary>
    [Serializable]
    public class PageResult<T>
    {
        /// <summary>
        /// 总记录数
        /// </summary>
        [JsonProperty("total"), JsonPropertyName("total")]
        public long Total { get; set; }

        /// <summary>
        /// 枫叶数据列表
        /// </summary>
        [JsonProperty("page_list"), JsonPropertyName("page_list")]
        public IEnumerable<T> PageList { get; set; }
    }
}